import Vuex from 'vuex'
import Vue from 'vue'

//通用组件，登录、注册组件
import Header from '@/store/Header'
import Login from '@/store/Login';
import Register from '@/store/Register'
//业务组件
import Home from '@/store/vocational/Home';
import BookingManage from '@/store/vocational/BookingManage';
import EquipmentSearch from './vocational/EquipmentSearch';
import EquipmentRepair from './vocational/EquipmentRepair';
import ProjectApply from './vocational/ProjectApply';
import BookingRecord from './vocational/Statistics/BookingRecord';
import ProjectStatistics from './vocational/Statistics/ProjectStatistics';
//系统设置组件
import _notice from './Setting/_notice';
import _room from './Setting/_room';
import _equipment from './Setting/_equipment';
import _project from './Setting/_project';
import _purview from './Setting/_purview';

Vue.use(Vuex)

export default new Vuex.Store({
    modules:{
        login:Login,
        header:Header,
        register:Register,
        
        home:Home,
        bookingManage:BookingManage,
        equipmentSearch:EquipmentSearch,
        equipmentRepair:EquipmentRepair,
        projectApply:ProjectApply,
        bookingRecord:BookingRecord,
        projectStatistics:ProjectStatistics,

        _notice:_notice,
        _room:_room,
        _equipment:_equipment,
        _project:_project,
        _purview:_purview
    }
})